$bool = Fs.Copy
("<source>", "<destination>")
Copies a file to another location.
Parameters
<source> Relative or absolute path of the original file.
<destination> Relative or absolute path or filename of the target file.
Return Value
Returns 1 if successfully copied, else returns 0.
Remarks
- Only a copy is passed to the destination, the original file remains in the source location.
- If the full path of either the source file or the destination file is not specified, it searches or copies to the location containing the script.
Example
$src = "C:\Plugins\Source.doc"
$dest = "Destination.doc"
$ret = fs.Copy ($src, $dest)